package cube.utils;

import cube.utils.log.Log;
import cube.utils.log.LogFactory;
import cube.utils.msg.Msg;
import cube.utils.msg.MsgFactory;
import cube.utils.msg.MsgUtil;

/**
 * 基础类
 * 
 * @author abiao
 */
public class BaseUtil {

    /**
     * 配置读取工具
     */
    public static MsgUtil conf = MsgFactory.bundle("cube");

    /**
     * 日志显示信息
     */
    public static MsgUtil info = MsgFactory.bundle("cube_msg_"
            + conf.get("i18n.locale"));

    /**
     * 日志输出工具
     */
    public static Log log = LogFactory.getLog();

    /**
     * 国际化信息输出
     */
    public static final Msg msg = new Msg(log, info);
}
